<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AvancesMetas.aspx.cs" MasterPageFile="~/MasterPageMcSig.master"
    Inherits="AvancesMetas" %>
<%@ Register assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView.Export" tagprefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="UsrControls" Namespace="UsrControls" TagPrefix="cc1" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h1 class="presupuesto">
        Ejecucion Presupuestal</h1>
    <div class="borde">
        <table width="100%" border="0" class="content-box">
            <tr>
                <td colspan="2" class="box-header">
                    <h2>
                        <asp:Label ID="lblDependencia" runat="server"></asp:Label></h2>
                </td>
            </tr>
            <tr>
                <td class="campo" style="width: 20%">
                    Rubro</td>
                <td>
                    <asp:LinkButton ID="lblDescripcionRubro" runat="server" CausesValidation="False"
                        OnClick="lblDescripcionRubro_Click"></asp:LinkButton></td>
            </tr>
            <tr>
                <td class="campo">
                    Codigo Presupuestal</td>
                <td>
                    <asp:Label ID="lblCodigoPresupuestal" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td class="campo">
                    Valor apropiacion</td>
                <td>
                    <asp:Label ID="lblValorApropiacion" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td class="campo">
                    Sub actividad</td>
                <td>
                    <asp:LinkButton ID="lblAccion" runat="server" CausesValidation="False" OnClick="lblAccion_Click"></asp:LinkButton></td>
            </tr>
            <tr>
                <td class="campo">
                    Valor</td>
                <td>
                    &nbsp;<asp:Label ID="lblValorAccion" runat="server"></asp:Label></td>
            </tr>
        </table>
    </div>
    <table class="tabs">
        <tr>
            <td style="height: 20px">
                <asp:ImageButton ID="btnRegresar" runat="server" CausesValidation="False" ImageUrl="~/Imagenes/bt-regresar.gif"
                    OnClick="btnRegresar_Click" /></td>
            <td class="tab-activo" style="height: 20px">
                <anthem:LinkButton ID="LinkEpes" runat="server" CausesValidation="False" EnableCallBack="False"
                   OnClientClick="return confirmEdit();">Avances Metas</anthem:LinkButton></td>
            <td class="tab-inactivo" style="height: 20px" runat="server" id="tre" visible="false">
                <anthem:LinkButton ID="LinkContratos" runat="server" CausesValidation="False" EnableCallBack="False"
                    OnClick="LinkContratos_Click" OnClientClick="return confirmEdit();">Contratos</anthem:LinkButton></td>
        </tr>
    </table>
    <div class="overflow">
    <dxwgv:ASPxGridView ID="gridPlanesProgramas" runat="server" AutoGenerateColumns="False"
        CssFilePath="~/App_Themes/Plastic Blue/{0}/styles.css" CssPostfix="PlasticBlue"
        KeyFieldName="SPZ_ID" Width="100%">
        <Images ImageFolder="~/App_Themes/Plastic Blue/{0}/">
            <CollapsedButton Height="10px" Url="~/App_Themes/Plastic Blue/GridView/gvCollapsedButton.png"
                Width="9px">
            </CollapsedButton>
            <ExpandedButton Height="9px" Url="~/App_Themes/Plastic Blue/GridView/gvExpandedButton.png"
                Width="9px">
            </ExpandedButton>
            <HeaderSortDown Height="11px" Url="~/App_Themes/Plastic Blue/GridView/gvHeaderSortDown.png"
                Width="11px">
            </HeaderSortDown>
            <HeaderSortUp Height="11px" Url="~/App_Themes/Plastic Blue/GridView/gvHeaderSortUp.png"
                Width="11px">
            </HeaderSortUp>
        </Images>
        <Styles CssFilePath="~/App_Themes/Plastic Blue/{0}/styles.css" CssPostfix="PlasticBlue">
            <Header ImageSpacing="10px" SortingImageSpacing="10px">
            </Header>
        </Styles>
        <Columns>
            <dxwgv:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0">
                <ClearFilterButton Visible="True">
                </ClearFilterButton>
            </dxwgv:GridViewCommandColumn>
            <dxwgv:GridViewDataHyperLinkColumn Caption="Imagenes" Visible="False" VisibleIndex="1"
                Width="60px">
                <DataItemTemplate>
                    <anthem:LinkButton ID="lnkImagenesAnthem" runat="server" AutoUpdateAfterCallBack="True"
                        CommandName="verImagenes">Ver Imagenes</anthem:LinkButton>
                </DataItemTemplate>
                <HeaderStyle Wrap="True" />
            </dxwgv:GridViewDataHyperLinkColumn>
            <dxwgv:GridViewDataTextColumn Caption="Programa" FieldName="GPR_NOMBRE" VisibleIndex="1">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Proyecto" FieldName="PRG_NOMBRE" VisibleIndex="2">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Descripci&#243;n" FieldName="PRG_DESCRIPCION"
                VisibleIndex="4" Width="200px">
                <CellStyle Wrap="True">
                </CellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Departamento" FieldName="ZON_NOMBRE_PADRE"
                VisibleIndex="3" Width="100px">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Municipio" FieldName="ZON_NOMBRE" VisibleIndex="5">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="A&#241;o" FieldName="PRG_ANO" VisibleIndex="6"
                Width="50px">
                <HeaderStyle Wrap="True" />
                <CellStyle Wrap="True">
                </CellStyle>
                <FooterCellStyle Wrap="True">
                </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Poblaci&#243;n" FieldName="PRG_POBLACION_BENEFICIADA"
                VisibleIndex="7" Width="50px">
                <PropertiesTextEdit DisplayFormatString="{0:N0}">
                </PropertiesTextEdit>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Valor" FieldName="PRG_VALOR_EJECUCION" VisibleIndex="8"
                Width="100px">
                <PropertiesTextEdit DisplayFormatString="{0:N2}">
                </PropertiesTextEdit>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Cantidad" FieldName="PRG_CANTIDAD" VisibleIndex="9"
                Width="50px">
                <PropertiesTextEdit DisplayFormatString="{0:N0}">
                </PropertiesTextEdit>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Observaciones" FieldName="PRG_OBSERVACIONES"
                Visible="False" VisibleIndex="10">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataHyperLinkColumn Caption="Cofinanciaci&#243;n" Visible="False"
                VisibleIndex="11">
                <DataItemTemplate>
                    <anthem:LinkButton ID="lnkCofinanciacion" runat="server" AutoUpdateAfterCallBack="True"
                        CommandName="cmdcofinanciacion">Cofinanciacion</anthem:LinkButton>
                </DataItemTemplate>
            </dxwgv:GridViewDataHyperLinkColumn>
            <dxwgv:GridViewDataHyperLinkColumn Caption="Entidades Programas" Visible="False"
                VisibleIndex="12">
                <DataItemTemplate>
                    <anthem:LinkButton ID="lnkEntidadesProgramas" runat="server" CommandName="cmdEntidadesProgramas">Entidades</anthem:LinkButton>
                </DataItemTemplate>
            </dxwgv:GridViewDataHyperLinkColumn>
            <dxwgv:GridViewDataTextColumn Caption="Estado" FieldName="PRG_ESTADO" VisibleIndex="10">
            </dxwgv:GridViewDataTextColumn>
        </Columns>
        <TotalSummary>
            <dxwgv:ASPxSummaryItem DisplayFormat="{0:N0}" FieldName="PRG_POBLACION_BENEFICIADA"
                ShowInColumn="PRG_POBLACION_BENEFICIADA" SummaryType="Sum" />
            <dxwgv:ASPxSummaryItem DisplayFormat="${0:N0}" FieldName="PRG_VALOR_EJECUCION" ShowInColumn="PRG_VALOR_EJECUCION"
                SummaryType="Sum" />
            <dxwgv:ASPxSummaryItem DisplayFormat="{0:N0}" FieldName="PRG_CANTIDAD" ShowInColumn="PRG_CANTIDAD"
                SummaryType="Sum" />
        </TotalSummary>
        <Settings ShowFilterRow="True" ShowFooter="True" ShowGroupPanel="True" />
        <SettingsCustomizationWindow Enabled="True" />
        <SettingsPager ShowDefaultImages="False">
            <AllButton Text="Todos" Visible="True">
            </AllButton>
            <NextPageButton Text="Siguiente &gt;" Visible="False">
            </NextPageButton>
            <PrevPageButton Text="&lt; Anterior" Visible="False">
            </PrevPageButton>
        </SettingsPager>
        <SettingsText GroupPanel="Arrastre aqui las columnas que desea agrupar" Title="Planes y Programas" />
        <SettingsLoadingPanel Text="Cargando&amp;hellip;" />
        <SettingsBehavior AllowFocusedRow="True" />
        <SettingsCookies Enabled="True" />
    </dxwgv:ASPxGridView>
    </div>
    <dxwgv:ASPxGridViewExporter ID="gridExport" runat="server" GridViewID="gridPlanesProgramas">
    </dxwgv:ASPxGridViewExporter>
    <asp:Button ID="btnXlsExport" runat="server" OnClick="btnXlsExport_Click" Text="Exportar a XLS" CssClass="button m" />
    <asp:Button ID="btnRtfExport" runat="server" OnClick="btnRtfExport_Click" Text="Exportar a RTF" CssClass="button m" />
    <asp:Button ID="btnCsvExport" runat="server" OnClick="btnCsvExport_Click" Text="Exportar a CSV" CssClass="button m" />

    <cc1:PopupPanel ID="PopupPanel1" runat="server" Height="460px" Width="680px">
    </cc1:PopupPanel>
</asp:Content>
